Chaotic and self-organized critical behavior of a generalized slider-block model