home page slider responsive calculations