gallery slider functionality and styles