created post slider template

-created post slider template
-removed get_gallery function
-corrected slide controls generation loop for home and posts