client: fix width part1 - move width and margin settings to css instead of being dynamically determined via JS
client: remove unused code
rephrasing some comments
client: tweaking some code. removing unnecessary variables and renaming others
client: fixed an issue where images sliding out of one div push away images from the next div