Added responsive image handling to gallery slider and thumbs