added control for gallery section and updated js
updated frontpage.php